package com.librarysys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 进行页面直接跳转访问
 * Created by yuhui on 2017/7/11.
 */
@Controller
public class PageController {

    @RequestMapping("/")
    public String index(){
        return "login";
    }

    @RequestMapping("/send/{pageName}")
    public String send(@PathVariable("pageName") String pageName){
        return pageName;
    }
}
